xen: enable keyhandlers to work without register set specified
authorJuergen Gross <jgross@suse.com>
Sat, 16 Jan 2021 10:33:38 +0000 (11:33 +0100)
committerJulien Grall <jgrall@amazon.com>
Sat, 23 Jan 2021 11:31:32 +0000 (11:31 +0000)
commita4e8b178bfb4ee404cc7329032112d0c18ca4b66
tree85055c52ba88a606decbfea4490091a5340860c8
parentc8d4b6304a5ee22bfd8a207973199b379c36604e
xen: enable keyhandlers to work without register set specified

There are only two keyhandlers which make use of the cpu_user_regs
struct passed to them. In order to be able to call any keyhandler in
non-interrupt contexts, too, modify those two handlers to cope with a
NULL regs pointer by using run_in_exception_handler() in that case.

Suggested-by: Julien Grall <julien@xen.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/keyhandler.c